Syntax
Disconnect-CIServer [[-Server] <CIServer[]>] [-Force] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet disconnects the session from the specified cloud servers. If no servers are provided to the Server parameter, the cmdlet disconnects the default servers.Parameters
| Name | Type | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|---|
| Server | CIServer[] | Specifies the cloud servers you want to disconnect from. | false | true (ByValue) | |
| Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | false | |
| Force | SwitchParameter | Specifies that you want to remove all existing connections to the specified servers. | false | false | |
| InformationAction | ActionPreference | false | false | ||
| InformationVariable | String | false | false | ||
| PipelineVariable | String | false | false | ||
| WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false |
Return Type
NoneNotes
Examples
-------------- Example 1 --------------
Disconnect-CIServer
Disconnects all default servers.
-------------- Example 2 --------------
Disconnect-CIServer * -Confirm:$false
Disconnects all default servers without asking for confirmation.
-------------- Example 3 --------------
Disconnect-CIServer $server1 -Force -Confirm:$false
Disconnects all server connections stored in $server1.
-------------- Example 4 --------------
$server1,$server2 | Disconnect-CIServer -Force -Confirm:$false
Disconnects all server connections stored in the $server1 and $server2 variables.